/* Class: ASTStatData
 * 
 * It's a DATA CLASS
 * 
 * For Statistic data that got from target file tracing.  
 */

package ast;

public class ASTStatData {
	private int assignmentCounter;
	private int classInstanceCreationCounter;
	private int fieldAccessCounter;
	private int fieldDeclarationCounter;
	private int importDeclarationCounter;
	private int methodDeclarationCounter;
	private int methodInvocationCounter;
	private int memberRefCounter;
	private int singleVariableDeclarationCounter;
	private int simpleNameCounter;

	
	public ASTStatData(){
		
		assignmentCounter = 0;
		classInstanceCreationCounter = 0;
		fieldAccessCounter = 0;
		fieldDeclarationCounter = 0;
		importDeclarationCounter = 0;
		memberRefCounter = 0;
		methodInvocationCounter = 0;
		methodDeclarationCounter = 0;	
		singleVariableDeclarationCounter = 0;
	}
	


	public void addAssignmentNum(){
		assignmentCounter++;
	}

	public void addMethodInvocationNum(){
		methodInvocationCounter++;
	}
	
	
	public void addFieldAccessNum(){
		fieldAccessCounter++;
	}

	public void addSingleVariableDeclarationNum(){
		singleVariableDeclarationCounter++;
	}
	
	public void addMemberRefNum(){
		memberRefCounter++;
	}
	
	public void addImportDeclarationNum(){
		importDeclarationCounter++;
	}
	
	
	public void addFieldDeclarationNum(){
		fieldDeclarationCounter++;
	}
	
	public void addMethodDeclarationNum(){
		methodDeclarationCounter++;
	}
	

	public void addClassInstanceCreationNum(){
		classInstanceCreationCounter++;
	}

	public void addSimpleNameNum(){
		simpleNameCounter++;
	}

	
	public int getAssignmentNum(){
		return 	assignmentCounter;
	}

	public int getSingleVariableDeclarationNum(){
		return 	singleVariableDeclarationCounter;
	}
	
	public int getMemberRefNum(){
		return 	memberRefCounter;
	}
	
	public int getMethodInvocationNum(){
		return methodInvocationCounter;
	}
	
	public int getFieldAccessNum(){
		return fieldAccessCounter;
	}
	
	public int getImportDeclarationCounterNum(){
		return importDeclarationCounter;
	}
	
	public int getFieldDeclarationNum(){
		return fieldDeclarationCounter;
	}
	
	public int getMethodDeclarationNum(){
		return methodDeclarationCounter;
	}
	
	public int getClassInstanceCreationNum(){
		return classInstanceCreationCounter;
	}
	
	public int getSimpleNameNum(){
		return simpleNameCounter;
	}
}

